package com.reviewit.dao;

import org.bson.types.ObjectId;

import com.google.code.morphia.Morphia;
import com.google.code.morphia.dao.BasicDAO;
import com.mongodb.Mongo;
import com.reviewit.dao.mongodb.MongoUtil;
import com.reviewit.model.DocLicence;

public class DocLicenceDao extends BasicDAO<DocLicence, ObjectId> {
	private static DocLicenceDao INSTANCE = new DocLicenceDao(
			MongoUtil.getMongo(), MongoUtil.getMorphia(), MongoUtil.getDbName());

	protected DocLicenceDao(Mongo mongo, Morphia morphia, String dbName) {
		super(mongo, morphia, dbName);
	}

	public static DocLicenceDao getInstance() {
		return INSTANCE;
	}
}